import { Alert } from 'react-native';
import axios from '../../util/http';
export const updatePhotosDownCount = async photosId => {
    try {
        const res = await axios.post('/photosProfile/download', { photosId });
        return res.data;
    } catch (e) {
        Alert.alert('请求失败', e.message);
        return null;
    }
};
export const getPhotosHotList = async () => {
    try {
        const res = await axios.post('/photosProfile/hotList', {});
        return res.data;
    } catch (e) {
        Alert.alert('请求失败', e.message);
        return null;
    }
};

export const getPhotosFindList = async () => {
    try {
        const res = await axios.post('/photosProfile/findList', {});
        return res.data;
    } catch (e) {
        Alert.alert('请求失败', e.message);
        return null;
    }
};
